package com.lemon.smartsafety.result;

import java.io.Serializable;

/**
 * 项目名称：workspace
 * 类描述：
 * 创建人：Fargo
 * 创建时间：2016/8/18 16:09
 * 修改人：Fargo
 * 修改时间：2016/8/18 16:09
 * 修改备注：
 */
public class OldBaseMode implements Serializable{


    /**
     * code : 0
     * msg : 操作成功
     */

    private ErrorEntity error;
    /**
     * error : {"code":0,"msg":"操作成功"}
     * isError : false
     */

    private boolean isError;

    private Object result;
    private String msg="";


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public ErrorEntity getError() {
        return error;
    }

    public void setError(ErrorEntity error) {
        this.error = error;
    }

    public boolean isIsError() {
        return isError;
    }

    public void setIsError(boolean isError) {
        this.isError = isError;
    }

    public static class ErrorEntity {
        private int code;
        private String msg;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
